package com.ttg.common.entities;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ttg.common.enums.SensitivityTypeEnum;

import java.lang.annotation.*;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside
@JsonSerialize(using = SensitivitySerializer.class)
public @interface SensitivityEncrypt {

    SensitivityTypeEnum type();
    int prefixNoMaskLen() default 1;
    int suffixNoMaskLen()default 1;
    String maskStr()default "*";
}
